#ifndef THREAD_INCLUDED
#define THREAD_INCLUDED

#include <pthread.h>
#include <string>

class ThreadProcess
{
public:
	ThreadProcess(std::string const& name);
	virtual bool process()=0;
	~ThreadProcess();
	void stopProcess();
	bool running() const
	{
		return m_running;
	}

	std::string name() const
	{
		return m_name;
	}
private:
	pthread_t m_thread;
	std::string m_name;
	bool m_running;
};

#endif
